package com.qijian.business.domain.query;

import com.baomidou.mybatisplus.annotation.TableName;
import com.qijian.common.utils.mybatis.WhereType;
import com.qijian.common.utils.mybatis.WhereTypeEnum;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Set;


/**
 * 报价单对象 查询条件类
 *
 * @author qijian
 * @date 2021-10-09
 */

@Data
@ToString
@TableName("sm_quotation_detail")
public class QuotationDetailQuery {
    @WhereType(filed = "id")
    private Long id;
    @WhereType(filed = "id", type = WhereTypeEnum.NOTIN)
    private Set<Long> idsNot;
    @WhereType(filed = "id", type = WhereTypeEnum.IN)
    private Set<Long> ids;
    @WhereType(filed = "main_id")
    private Long mainId;
    @WhereType(filed = "item_id")
    private Long itemId;
    @WhereType(filed = "item_type")
    private String itemType;
    @WhereType(filed = "item_name")
    private String itemName;
    @WhereType(filed = "item_code")
    private String itemCode;
    @WhereType(filed = "item_attr")
    private String itemAttr;
    @WhereType(filed = "item_unit")
    private String itemUnit;
    @WhereType(filed = "item_unit_sup")
    private String itemUnitSup;
    @WhereType(filed = "quantity")
    private BigDecimal quantity;
    @WhereType(filed = "quantity_sup")
    private BigDecimal quantitySup;
    @WhereType(filed = "minimum_quantity")
    private BigDecimal minimumQuantity;
    @WhereType(filed = "item_weight")
    private BigDecimal itemWeight;
    @WhereType(filed = "tax_unit_price")
    private BigDecimal taxUnitPrice;
    @WhereType(filed = "total_tax_amount")
    private BigDecimal totalTaxAmount;
    @WhereType(filed = "purchasing_cycle")
    private String purchasingCycle;
    @WhereType(filed = "remark")
    private String remark;
    @WhereType(filed = "status")
    private String status;
    @WhereType(filed = "create_id")
    private Long createId;

    @WhereType(filed = "create_by", type = WhereTypeEnum.LIKE)
    private String createBy;

    @WhereType(filed = "create_time", type = WhereTypeEnum.BETWEEN,tableName = "qo")
    private Date[] createTime;
}
